package com.example.core.debezium.message;

import java.util.Map;

public class Message {

    public static final String READ = "READ";
    public static final String CREATE = "CREATE";
    public static final String UPDATE = "UPDATE";
    public static final String DELETE = "DELETE";
    public static final String NONE = "NONE";

    private Map<String, Object> data;
    private String dbType;
    private String handleType;
    private String database;
    private String table;

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getHandleType() {
        return handleType;
    }

    public void setHandleType(String handleType) {
        this.handleType = handleType;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    @Override
    public String toString() {
        return "Message{" +
                "data=" + data +
                ", dbType='" + dbType + '\'' +
                ", handleType='" + handleType + '\'' +
                ", database='" + database + '\'' +
                ", table='" + table + '\'' +
                '}';
    }
}
